package com.example.helloworld.controller;

import com.example.helloworld.model.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @RequestMapping(name = "/getUser", method = RequestMethod.POST)
    public User getUser(){
        User user = new User();
        user.setName("xiaoming");
        user.setAge(18);
        user.setPass("123123");

        return user;
    }


}
